package com.ccx.demo.captcha.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ImgResult {
    private String imgUUID;

    /**
     * 图片格式
     */
    private String img;

    private String code;


    public static ImgResult success(ImgResult imgResult){
        ImgResult result = new ImgResult(imgResult.getImgUUID(),imgResult.getImg(),imgResult.getCode());
        System.out.println("yzm:"+result);
        return result;
    }
}
